package ofmybatis.demo.TestDSCIRegister;

import java.util.HashMap;
import java.util.Map;

public class DefaultTypeFactoryRegistry implements TypeFactoryRegistry {

    private Map<String, String> typeClassFactoryMap = new HashMap<String, String>();

    @Override
    public void registe(String type, String factoryClassName) {
        typeClassFactoryMap.put(type,factoryClassName);
    }

    @Override
    public String getFactoryClassName(String type) {
        return typeClassFactoryMap.get(type);
    }


}
